package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "开店申请")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatOpenShopApplyFeign {

    /**
     * 品牌闪购详情
     * @param jsonObject
     * @return
     */
    @ApiOperation("品牌闪购详情")
    @PostMapping("/wechat/openshopapplymgr/ajaxopenshop")
    String ajaxOpenShop(@RequestParam("jsonObject")JSONObject jsonObject);

    /**
     * 发现推荐列表
     * @param start
     * @param pageSize
     * @param productLabelSize
     * @return
     */
    @ApiOperation("发现推荐列表")
    @PostMapping("/wechat/openshopapplymgr/ajaxfindpageproduct")
    String findPageProduct(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize,@RequestParam("productLabelSize")Integer productLabelSize);

    @PostMapping("/wechat/openshopapplymgr/getaboutus")
    String getAboutUs(@RequestParam("custId")Long custId);
}
